﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Google.Translates.Core.Entries
{
    //{ "data": { "detections": [ [ { "language": "zh-CN", "isReliable": false, "confidence": 0.9174454 } ] ] } } 
    [DataContract]
    public class DetectionItem
    {
        /// <summary>
        /// Value For JSON data.detections.language
        /// </summary>
        [DataMember(Order = 0, Name = "language")]
        public string Language { get; set; }

        /// <summary>
        /// Value For JSON data.detections.isReliable
        /// </summary>
        [DataMember(Order = 1, Name = "isReliable")]
        public string IsReliable { get; set; }

        /// <summary>
        /// Value For JSON data.detections.confidence
        /// </summary>
        [DataMember(Order = 2, Name = "confidence")]
        public string Confidence { get; set; }
    }
}
